import { Controller, Post, Body, UseGuards } from '@nestjs/common';
import { GenerateDto } from 'src/dto/generate.dto';
import { AdminGuard } from 'src/guards/admin.guard';
import { GenerateService } from 'src/service/generate.service';

@Controller('admin/generate')
export class GenerateController {
  constructor(private readonly generateService: GenerateService) {}

//   @UseGuards(AdminGuard)
  @Post()
  create(@Body() generateDto: GenerateDto) {
    return this.generateService.create(generateDto);
  }
}
